using System;
using Server.Items;
using Server.Targeting;
using System.Collections;

namespace Server.Mobiles
{
	[CorpseName( "an undead guardian corpse" )]
	public class UndeadGuardian : BaseCreature
	{
		[Constructable]
		public UndeadGuardian() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "an undead guardian";
			Body = 722; 

			SetStr( 212 );
			SetDex( 76 );
			SetInt( 56 );

			SetHits( 138 );

			SetDamage( 8, 18 );

			SetDamageType( ResistanceType.Physical, 40 );
			SetDamageType( ResistanceType.Cold, 60 );

			SetResistance( ResistanceType.Physical, 38 );
			SetResistance( ResistanceType.Fire, 24 );
			SetResistance( ResistanceType.Cold, 58 );
			SetResistance( ResistanceType.Poison, 28 );
			SetResistance( ResistanceType.Energy, 38 );

			SetSkill( SkillName.MagicResist, 66.6 );
			SetSkill( SkillName.Tactics, 86.2 );
			SetSkill( SkillName.Wrestling, 86.9 );

			PackNecroReg( 10, 15 ); /// Stratics didn't specify

		}

		public override void GenerateLoot()
		{
			AddLoot( LootPack.FilthyRich, 3 );
		}

		public override int Meat{ get{ return 1; } }

		public override int GetIdleSound() { return 1609; } 
		public override int GetAngerSound() { return 1606; } 
		public override int GetHurtSound() { return 1608; } 
		public override int GetDeathSound()	{ return 1607; }

		public UndeadGuardian( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
}